package com.bxx.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bxx.common.dto.BlogDto;
import com.bxx.entity.Blog;
import com.bxx.mapper.BlogMapper;
import com.bxx.service.BlogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2020-11-12
 */
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements BlogService {

    @Override
    public Page<BlogDto> getBlogList(Page<BlogDto> page, String keyWord, String sortWord) {
        return page.setRecords(this.baseMapper.getBlogList(page, keyWord, sortWord));
    }
}
